<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$Charset}>">
<title>控制台_<{$sitetitle}></title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="<{$CSS_PATH}>css/style.css">
<script language="javascript" src="<{$JS_PATH}>js/popcalendar.js"></script>
<script language="javascript" src="<{$JS_PATH}>js/general.js"></script>
<script language="javascript" src="<{$JS_PATH}>js/jquery-1.1.3.1.pack.js"></script>
<script language="javascript" src="<{$JS_PATH}>js/thickbox-compressed.js"></script>
<style type="text/css" media="all">
@import "<{$CSS_PATH}>css/thickbox.css";
</style>
</head>

<body>
<a name="top" />
<!-- 位置 -->
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
<div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;产品库管理</div></td></tr>
</table>
<br />
<!-- 搜索 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="8"><div align="left">产品库搜索</div></td></tr>
<form name="searchfrm" method="get" action="<{$smarty.server.PHP_SELF}>">
<tr>
	<td width="9%"><div align="right">会员编号:</div></td>
	<td width="15%"><input name="member[id]" type="text" id="memberid" value="<{$smarty.get.member.id}>"></td>
	<td width="10%"><div align="right">公司名称:</div></td>
	<td><input name="company[name]" type="text" id="companyname" value="<{$smarty.get.company.name}>"></td>
	<td><div align="right">产品名称:</div></td>
	<td colspan="2"><input name="product[name]" type="text" id="productname" value="<{$smarty.get.product.name}>"></td>
	<td>&nbsp;</td>
  </tr>
<tr>
  <td><div align="center">发布时间</div></td>
  <td><input type="text" name="FromDate" size="10" value='<{$smarty.post.FromDate|default:"None"}>' id="date3" readonly>
<a href="javascript:;" onclick='showCalendar(this, document.getElementById("date3"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<{$tpl_img_path}>calendar.gif" border="0" alt=""></a></td>
  <td><div align="center">到</div></td>
  <td><input type="text" name="ToDate" size="10" value='<{$smarty.post.ToDate|default:"None"}>' id="date4" readonly>
<a href="javascript:;" onclick='showCalendar(this, document.getElementById("date4"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<{$tpl_img_path}>calendar.gif" border="0" alt=""></a></td>
  <td><div align="center"></div></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td><div align="center">信息状态</div></td>
  <td><select name="product[status]" id="productstatus">
  <option value="-1">请选择</option>
      <{html_options options=$CheckStatus selected=$smaty.post.product.status}>
    </select></td>
  <td><div align="center">商品类型</div></td>
  <td><select name="product[sort_id]" id="productsort_id">
  <option value="-1">请选择</option>
      <{html_options options=$ProductSorts selected=$smaty.post.product.sort_id}>
    </select></td>
  <td colspan="4"><input name="search" type="submit" id="search" value="搜索" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
  </tr>
</form>
</table>
<!-- 标题 -->
<form name="listfrm" action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header" align="center"><td></td>
  <td>&nbsp;</td>
  <td><strong>产品名称</strong></td>
<td><strong>公司名称</strong></td>
<td><strong>上/下架</strong></td>
<td><strong>状　态</strong></td>
<td><strong>发布时间</strong></td>
<td><strong>操作</strong></td>
</tr>
<tbody id="menu_1" style="display: yes">
<!-- single product -->
<{foreach from=$ProductList name=plist item=p}>
<tr bgcolor="<{cycle values=#eeeeee,#ffffff}>" align="center">
<td><input type="checkbox" name="pid[]" value="<{$p.PID}>" onclick="uaCheckItem(this, 'pidAll')" id="lbl_<{$p.PID}>"></td>
<td align="left"><{if $p.ProductPicture!=''}><a href="../media/attachment/<{$p.ProductPicture}>" title="<{$p.ProductName}>" class="thickbox" rel="trades"><img src="<{$tpl_img_path}>admin/havepic.gif" border="0" alt="有图片" /></a><{/if}><{if $p.Ifcommend}>&nbsp;<img src="../images/recommend.gif" border="0" alt="推荐产品" /><{/if}></td>
<td align="left"><label for="lbl_<{$p.PID}>"><{$p.ProductName|truncate:35}><{if $p.CreateDate>$Today}>&nbsp;<img src="./images/new2.gif" /><{/if}></label></td>
<td><a href="./company.php?action=mod&id=<{$p.CID}>"><{$p.CompanyName}></a></td>
<td><{$BooleanVars[$p.ProductState]}></td>
<td><{$CheckStatus[$p.ProductStatus]}></td>
<td><{$p.CreateDate|date_format:"%Y-%m-%d"}></td>
<td><a href="./product.php?action=mod&id=<{$p.PID}>"><img src="<{$tpl_img_path}>admin/mod.gif" border="0" /></a>&nbsp;<a href="<{$SiteUrl}>product/content.php?id=<{$p.PID}>" title="点击预览" target="_blank"><img src="<{$tpl_img_path}>admin/preview.gif" border="0" /></a></td>
</tr>
<{foreachelse}>
<tr bgcolor="#ffffff">
<td colspan="9" align="center"><strong>目前没有任何数据</strong></td>
</tr>
<{/foreach}>
</tbody>
<!-- 操作列表 -->
<tr align="center"><td class="altbg2" colspan="9">
<br />
<div id="bottom_action" class="actions">
<ul>
<li><img src="<{$tpl_img_path}>admin/arrow_left.png" border="0" alt="选中项"></li>
<li><input type="checkbox" name="pidAll" id="pidAll" onClick="uaCheckAll(this, 'pid[]')"><label for="pidAll">全选/全不选</label></li>
<li><i>选中项 : </i></li>
<li><input type="image" name="del[t]" src="<{$tpl_img_path}>admin/truncate.gif" border="0" alt="删除" onClick="return confirmAction('确定删除吗?');" /></li>
<li>{<input type="image" name="check[t_1]" src="<{$tpl_img_path}>admin/checked.gif" border="0" alt="审核通过" /></li>
<li><input type="image" name="check[t_2]" src="<{$tpl_img_path}>admin/check_false.gif" border="0" alt="审核不通过" /></li>
<li><input type="image" name="check[t_0]" src="<{$tpl_img_path}>admin/waiting.gif" border="0" alt="设置为等待审核" /></li>
<li><input type="image" name="check[t_3]" src="<{$tpl_img_path}>admin/false.gif" border="0" alt="设置为无效" />}</li>
<li><input type="image" name="recommend[t]" src="../images/recommend.gif" border="0" alt="推荐产品" /></li>
</ul>
</div>
</td></tr>
<!-- 分页 -->
<tr align="center"><td class="altbg1" colspan="9"><{$ByPages}></td></tr>
<tr class="header" bgcolor="#ffffff">
<td colspan="6"></td>
<td><div align="center"><a title="返回顶部" href="#top"><img id="go_top" src="./images/go_top.gif" border="0" style="vertical-align:middle;"/></a></div></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<!-- end new style -->
</body>
</html>